package com.itheima.Demo01.Tesk02.Test03;

import java.util.TreeSet;

public class Test01 {
    public static void main(String[] args) {
        TreeSet<class1> set = new TreeSet<>();
        class1 c1 = new class1("liusan",20,90.0F);
        class1 c2 = new class1("lisi",22,90.0F);
        class1 c3 = new class1("wangwu",20,99.0F);
        class1 c4 = new class1("sunliu",22,100.0F);
        set.add(c1);
        set.add(c2);
        set.add(c3);
        set.add(c4);
        for (class1 class1 : set) {
            System.out.println(class1);

        }

    }


}
